package cn.crm.clue;

import cn.crm.entity.Clue;
import cn.crm.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "clue-service",path = "/clues",fallback = ClueServiceApiFallback.class)
public interface ClueServiceApi {
    @PostMapping("/list")
    R list(@RequestBody Clue clue,
           @RequestParam("current") int current,
           @RequestParam("size") int size);

}
